package com.py.behavior.controller;

import com.py.behavior.servicer.BhLikesService;
import com.py.model.behavior.dtos.LikesBehaviorDto;
import com.py.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName BhLikesController
 * @Description TODO
 * @Author AXing
 * @Date 2022/11/16 13:04
 * @Version 1.0
 */
@RestController
@RequestMapping("/api/v1")
public class BhLikesController {
    @Autowired
    private BhLikesService bhLikesService;

    @PostMapping("/likes_behavior")
    public ResponseResult likeBehavior(@RequestBody LikesBehaviorDto dto){
        return bhLikesService.likeBehavior(dto);
    }
}
